package com.ego.item.bo;

import com.ego.item.pojo.*;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
public class SpuBo extends Spu {
    /**
     * 商品分类名称
     */
    private String categoryNames;
    /**
     * 品牌名称
     */
    private String brandName;
    /**
     * sku列表
     */
    private List<Sku> skus;
    /**
     * 商品详情
     */
    private SpuDetail spuDetail;
    /**
     * stock列表
     */
    private Stock stock;

    @Builder
    public SpuBo(Long id, Long brandId, Long cid1, Long cid2, Long cid3, String title, String subTitle, Boolean saleable, Boolean valid, Date createTime, Date lastUpdateTime, String categoryNames, String brandName, List<Sku> skus, SpuDetail spuDetail, Stock stock) {
        super(id, brandId, cid1, cid2, cid3, title, subTitle, saleable, valid, createTime, lastUpdateTime);
        this.categoryNames = categoryNames;
        this.brandName = brandName;
        this.skus = skus;
        this.spuDetail = spuDetail;
        this.stock = stock;
    }
}
